import java.util.Arrays;
import java.util.List;


public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Integer[] array = {1,2,3,4,5,-2,6};
		List<Integer> list = Arrays.asList(array);
		System.out.println(new MaxSum().getMaxSum2(list));
	}

}
